<?phpclass RejectForm extends CFormModel{    public $msg;	public function rules()	{		return array(			array('msg', 'required'),        );	}	//字段标签	public function attributeLabels()    {		return array(            'msg' => "拒绝理由",		);	}    /**     * @return bool     */	public function edit($id)	{	    $goods = ActApply::model()->findByPk($id);        $goods->sh_status = 2;        $goods->status=2;        $goods->msg = $this->msg;        if ($goods->save()){            $obj1 = shopUser::model()->findByPk($goods->user_id);            $obj2 = ActList::model()->findByPk($goods->act_id);            ShopMessage::addMessage("applyFail","活动审核失败","您申请的{".$obj2->title."}通过审核{".$this->msg."}，如有需要请与一天后再次申请！",$goods->user_id,$obj1->shop_id);            return true;        }else{            return false;        }	}	}